package summer_vacation.shuqiqi.day20150703;

/**
 * Created by shuqi on 2015/8/4.
 */
public class B {
    public static void main(String args[])   {
        long sum=0,a=1;
        long i=1;
        while(i<=6)
        {  if(i>=1)
            sum=sum+a;
            i++;
            a=a*i;
        }
        System.out.println("sum="+sum);
    }
}